<%@taglib uri="/WEB-INF/struts-html.tld"  prefix="html"%>
<%@taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@taglib uri="/WEB-INF/struts-bean.tld"  prefix="bean"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<!--
<html:form action="departement.do?action=departementAdd">
    <table width="100%" cellpadding="1" cellspacing="1">
        <tr class="netral">
            <td colspan="2"><bean:message key="departement.departement"/></td>
        </tr>
        <tr class="form">
            <td width="20%"><bean:message key="departement.nama"/></td>
            <td>:<html:text property="namaBagian" size="100"/></td>
        </tr>
        <tr class="form">
            <td colspan="2" align="right"><input type="button" onclick="validate_form()" value="${buttonAdd}"/></td>
        </tr>
    </table>
</html:form>
-->
<table cellpadding="1" cellspacing="1" width="100%">
    <tr class="netral">
        <td colspan="2"><bean:message key="label.tabel"/> <bean:message key="departement.departement"/></td>
    </tr>
    <tr align="center" class="header">
        <td><bean:message key="label.no"/></td>
        <td><bean:message key="departement.nama"/></td>
        <!--td align="center">Edit</td>
        <td align="center">Delete</td-->
    </tr>
    <logic:notEmpty name="listDepartement">
        <c:forEach var="listDepartement" items="${listDepartement}" varStatus="row">
            <c:if test="${(row.count) % 2 == 0}"><tr class="over"></c:if>
            <c:if test="${(row.count) % 2 != 0}"><tr class="down"></c:if>
                <td width="5%"><c:out value="${row.count}"/></td>
                <td align="left"><c:out value="${listDepartement.namaBagian}"/></td>
                <!--td align="center"><html:link action="/departement.do?action=departementEdit" paramName="listDepartement" paramProperty="id" paramId="id" styleClass="noLink">Yes</html:link></td>
                <td align="center"><html:link action="/departement.do?action=departementDelete" paramName="listDepartement" paramProperty="id" paramId="id" styleClass="noLink">Yes</html:link></td-->
            </tr>
        </c:forEach>
    </logic:notEmpty>
    <tr class="form">
        <td colspan="2">&nbsp;</td>
    </tr>
    <logic:empty name="listDepartement">
        <tr class="form">
            <td colspan="2" align="center"><bean:message key="departement.departement"/> <bean:message key="label.isEmpty"/></td>
        </tr>
    </logic:empty>
</table>